from django.conf.urls import include, url
from django.contrib import admin

urlpatterns = [
    # Examples:
    # url(r'^$', 'CDNdashboard.views.home', name='home'),
    # url(r'^blog/', include('blog.urls')),

    url(r'^admin/', include(admin.site.urls)),
    url(r'^$', 'Nodecontrol.views.index', name='home'),
    # url(r'^node/$', 'Nodecontrol.views.node_view', name='node'),
    url(r'^node/', include('Nodecontrol.urls')),
    url(r'^domain/', include('Domaincontrol.urls')),
    url(r'^dnspod/', include('Dnspodcontrol.urls')),
    #url(r'^dnspod/$', 'Dnspodcontrol.views.dnspod_view', name='dnspod'),
    url(r'^filecache/$', 'Cachecontrol.views.file_view', name='cache'),
    url(r'^dircache/$', 'Cachecontrol.views.dir_view', name='cache'),
    url(r'^logs/$', 'Logscontrol.views.logs_view', name='logs'),
    url(r'^upload/$', 'Cfgupload.views.upload_file', name='upload'),
    url(r'^getpack/$', 'Cfgupload.views.getpack', name='getpack'),
    url(r'^md5check/$', 'Cfgupload.views.md5_view', name='md5_view'),
    url(r'^area/$', 'Areacontrol.views.area_view', name='area_view'),
    url(r'^login/$', 'django.contrib.auth.views.login', {'template_name': 'login.html'}),
    url(r'^logout/$', 'django.contrib.auth.views.logout', {'template_name': 'logout.html'}),
]
